package org.example.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.domain.po.ErpRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.domain.query.HomeQuery;
import org.example.domain.vo.ErpRoleVO;
import org.example.domain.vo.home.Histogram;
import org.example.domain.vo.home.HomeDataVO;

import java.util.List;

/**
* @author DELL
* @description 针对表【erp_role(角色表)】的数据库操作Mapper
* @createDate 2024-10-09 17:03:06
* @Entity org.example.domain.po.ErpRole
*/
public interface ErpRoleMapper extends BaseMapper<ErpRole> {
    int insertRole(ErpRole role);
    
    ErpRole getRoleByUserId(Long userId);
    
    HomeDataVO getHomeData(@Param("query")HomeQuery homeQuery);

    List<Histogram> getHomeHistogram(@Param("tenantId") Long tenantId, @Param("subType") String subType, @Param("list")List<Integer> list);
    
    List<Histogram> getPurchaseHomeHistogram(@Param("tenantId") Long tenantId, @Param("subType") String subType, @Param("list")List<Integer> list);
}




